//app.js
let api = new (require('/utils/api.js'))
App({
  onLaunch: function () {
    wx.login({
      success: res => {
        // wx.showLoading({
        //   title: '加载中',
        // })
        api.wxlogin(res.code, res => {
          let {uid,code,corpExpired,corpGoodsTag,corpWashTag,corpBulkTag,corpInvoiceTag,msgTplIdArr,isLock} = res.data.entity.data;
          this.logininfo = {uid,code,corpExpired,corpGoodsTag,corpWashTag,corpBulkTag,corpInvoiceTag,msgTplIdArr,isLock};
          console.log(uid,code,corpExpired,'uid,code,corpExpireduid,code,corpExpired');
          
        })
      }
    })  
},
})